package com.njlime.member.service.app;

import com.njlime.core.helper.PageBean;
import com.njlime.member.entiies.MemberComment;
import com.njlime.member.repository.app.AppMemberCommentDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by Dean on 2017/10/9.
 */
@Service
public class AppMemberCommentService {
    @Resource
    private AppMemberCommentDao appMemberCommentDao;

    /**
     * 添加
     * @param memberComment
     */
    public void save(MemberComment memberComment){
        appMemberCommentDao.save(memberComment);
    }

    /**
     * 获取当前用户的对应评论
     */
    public PageBean commentList(PageBean pageBean, MemberComment memberComment) {
        return appMemberCommentDao.list(pageBean, memberComment);
    }
}
